package command;

import java.util.ArrayList;

import Exceptions.TableNotFoundException;
import XMLProcessing.TableProcessing;

public class DropStatement implements IStatement {
	private String table_name;
	public DropStatement(String table_name) {
		this.table_name = table_name;
	}
	
	public String toString() {
		String a =  "DROP TABLE " + table_name;
		return a;
	}

	@Override
	public ResultNode eval() throws TableNotFoundException{
		TableProcessing.dropTable(table_name);
		return null;
	}
}
